﻿#ifndef JUDGEFILEANDDEAL_H
#define JUDGEFILEANDDEAL_H

#include <QFileInfo>

#include <QSqlDatabase>
#include <QSqlQuery>
#include <QVariant>
#include <QMessageBox>
#include <QString>
#include <QDebug>

class multideal:public QWidget{
public:
    multideal();
    ~multideal();

public:
    QSqlDatabase  db;
private:
    QSqlQuery     query;
public:
    bool       judgeXlsFile(QString filename);//判断打开的是否是xls文件
    bool       judgeDbFile(QString filename);//判断打开的是否是数据库文件

    QVariant   dbFileDeal(QString filename);//载入数据库驱动并打开文件

    void        removeConnection();
};


#endif // JUDGEFILEANDDEAL_H
